package test3.A1_4;

// 支付宝支付方式
class AliPay extends Payment {
    private String number; // 卡号

    // 构造函数
    public AliPay(double amount, String number) {
        super(amount);
        this.number = number;
    }

    // Getter和Setter方法
    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }
}
